package com.appspot.diasporajava.dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.PersistenceUnit;

public final class EMF {
    private static EntityManagerFactory emfInstance;
    
    @PersistenceUnit
    public void setEntityManagerFactory(EntityManagerFactory emf) {
        this.emfInstance = emf;
    }

    private EMF() {}

    public static EntityManagerFactory get() {
        return emfInstance;
    }
}
